import request from '@/utils/request'

export function addService(data) {
  return request({
    url: '/juanbusiness/service/add',
    method: 'post',
    data
  })
}

export function findService(page,size,serviceCategoryId) {
  return request({
    url: '/juanbusiness/service/findPage',
    method: 'get',
    params: {page: page,size: size,serviceCategoryId: serviceCategoryId}
  })
}

  export function detailService(id) {
    return request({
      url: '/juanbusiness/service/get',
      method: 'get',
      params: {id: id}
    })
  }

export function enableService(data) {
  return request({
    url: '/juanbusiness/service/enable',
    method: 'put',
    data
  })
}

export function editService(data) {
  return request({
    url: '/juanbusiness/service/edit',
    method: 'put',
    data
  })
}

export function delService(id) {
  return request({
    url: '/juanbusiness/service/del',
    method: 'delete',
    params: {id: id}
  })
}
